package com.bingarchive;

class ArchiveParser extends AbstractParser {
	
	public static void Parser(String stXML, LoadParams loadParams, OnParserListener onParserListener) {
		int _ntStart, _ntEnd;
		
		_ntStart = stXML.indexOf("title") + 7;
		_ntEnd = stXML.indexOf(" &copy", _ntStart);
		
		loadParams.mbtInfo.mstCopyright = stXML.substring(_ntStart, _ntEnd);
		
		_ntStart = stXML.indexOf("resize.php?i=", _ntEnd) + 13;
		_ntEnd = stXML.indexOf("&w=100", _ntStart);
		
		loadParams.mbtInfo.mstName = stXML.substring(_ntStart, _ntEnd);
		
		onParserListener.onParserFinish(loadParams);
	}
}
